#ifndef DEVWIDGET_H
#define DEVWIDGET_H


#include <QtGui>
#include <bean.h>
#include "ui_devwidget.h"

class DevStandardItemModel:public QStandardItemModel
{
    Q_OBJECT
public:
    DevStandardItemModel(QObject * parent=0);
    virtual ~ DevStandardItemModel();
    QVariant data(const QModelIndex & index,int role=Qt::DisplayRole) const;
    void setDatas(QList<DevConf> datas);
private:
    void initProperty();
    QList<DevConf> datas;
};

class DevWidget : public QWidget,public Ui::devWidget
{
    Q_OBJECT
public:
    explicit DevWidget(QWidget *parent = 0);

public:
    DevStandardItemModel *mDevModel;


signals:
    void mystep(int index);

public slots:
    void devNumChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight);
    void next();

};




#endif // DEVWIDGET_H
